package com.sxfq.loansupermarket.backsystem.modular.theTest.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.sxfq.loansupermarket.backsystem.common.constant.tips.Tip;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.SearchTheTestInfo;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.TestQuestionsInfo;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.TheTestInfo;

import java.util.List;

public interface ITheTestInfoService {
    /**
     * 分页获取考试数据列表
     *
     * @param page
     * @param searchInfo
     * @return
     */
    List<TheTestInfo> selectPageListByQueryGetMap(Page<TheTestInfo> page, SearchTheTestInfo searchInfo);

    TheTestInfo selectOneById(String theTestId);

    int insert(TheTestInfo info);

    int update(TheTestInfo info);

    void delete(String id);

    int selectSameTestNameCount(String theTestName) throws Exception;

    int selectSameTestNameCountForUpdate(String id, String theTestName) throws Exception;
}
